home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / Papers / aSEPiA example source / plugin / CInterfaceProvider.h next >
Encoding:
C/C++ Source or Header  |  1999-06-25  |  568 b   |  25 lines  |  [TEXT/CWIE]

  1. /*---------------------------------------------------------------
  2.  
  3.     CInterfaceProvider.h
  4.     
  5.     Provides the function of returning interface pointers based on
  6.     passed in IDs.
  7.  
  8. ---------------------------------------------------------------*/
  9.  
  10. #include "IInterfaceProvider.h"
  11. #include "IPluginDrawIntf.h"
  12. #include "IPluginInfoIntf.h"
  13.  
  14.  
  15. class CInterfaceProvider : public IInterfaceProvider
  16. {
  17. public:
  18.             CInterfaceProvider();
  19.     OSErr    GetInterfacePointer( unsigned long inID, void** outInterfacePtr );
  20.  
  21. private:
  22.  
  23.     IPluginDrawIntf*    mDrawObject;
  24.     IPluginInfoIntf*    mInfoObject;
  25. };